package com.ztc.ZtcClassesSite.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcClasses.bean.ZtcClasses;

@Entity
@Table(name = "ztc_classes_site")
public class ZtcClassesSite implements BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//

	private String name;// å��ç§°

	private String areaCity;// æ‰€åœ¨åŸŽå¸‚

	private String areaCode;// åŒºåŸŸä»£ç �

	private java.lang.Integer sequence;// ç«™ç‚¹é¡ºåº�

	private String lat;// ç»�çº¬åº¦

	// private java.sql.Time departureTime;//åˆ°è¾¾æ—¶é—´

	private java.util.Date departureTime;

	private String fkZtcClassesId;

	private String managerPhone;

	private ZtcClasses ztcClasses;

	private java.lang.Integer daysAfterDepartureDate;

	public void setId(String value) {
		this.id = value;
	}

	public void setName(String value) {
		this.name = value;
	}

	public void setAreaCity(String value) {
		this.areaCity = value;
	}

	public void setAreaCode(String value) {
		this.areaCode = value;
	}

	public void setLat(String value) {
		this.lat = value;
	}

	public void setFkZtcClassesId(String fkZtcClassesId) {
		this.fkZtcClassesId = fkZtcClassesId;
	}

	public void setDepartureTime(java.util.Date departureTime) {
		this.departureTime = departureTime;
	}

	public void setSequence(java.lang.Integer sequence) {
		this.sequence = sequence;
	}

	public void setZtcClasses(ZtcClasses ztcClasses) {
		this.ztcClasses = ztcClasses;
	}

	public void setManagerPhone(String managerPhone) {
		this.managerPhone = managerPhone;
	}

	public void setDaysAfterDepartureDate(Integer daysAfterDepartureDate) {
		this.daysAfterDepartureDate = daysAfterDepartureDate;
	}

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 32)
	public String getId() {
		return this.id;
	}

	@Column(name = "name", unique = false, nullable = true, insertable = true, updatable = true, length = 32)
	public String getName() {
		return this.name;
	}

	@Column(name = "area_city", unique = false, nullable = true, insertable = true, updatable = true, length = 13)
	public String getAreaCity() {
		return this.areaCity;
	}

	@Column(name = "area_code", unique = false, nullable = true, insertable = true, updatable = true, length = 32)
	public String getAreaCode() {
		return this.areaCode;
	}

	@Column(name = "lat", unique = false, nullable = true, insertable = true, updatable = true, length = 25)
	public String getLat() {
		return this.lat;
	}

	@Column(name = "sequence", unique = false, nullable = true, insertable = true, updatable = true, length = 4)
	public java.lang.Integer getSequence() {
		return sequence;
	}

	@Column(name = "departure_time", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getDepartureTime() {
		return departureTime;
	}

	@Column(name = "fk_ztc_classes_id", unique = false, nullable = false, insertable = true, updatable = true, length = 32)
	public String getFkZtcClassesId() {
		return fkZtcClassesId;
	}
	
	@Column(name = "manager_phone", unique = false, nullable = true, insertable = true, updatable = true, length = 12)
	public String getManagerPhone() {
		return managerPhone;
	}
	@Column(name ="days_after_departure_date",unique=false,nullable=true,insertable=true,updatable=true,length=10)
	public Integer getDaysAfterDepartureDate() {return daysAfterDepartureDate;}
	@Transient
	public ZtcClasses getZtcClasses() {
		return ztcClasses;
	}
}
